Skip to content

Instantly share code, notes, and snippets.

@zbraniecki
zbraniecki / README.md
Last active March 11, 2026 18:47
Rust <--> C/C++ FFI for newbies

As Gecko is moving toward more Rust code, the cases where Rust and C code interoperate will become more common.

This document is an attempt to ease the learning curve for engineers facing it for the first time. It assumes no prior experience with cross-language C interfaces (called FFI).

It also assumes that Rust code is already built into Gecko. If you need help with that, read Introducing Rust code in Firefox.

What can you transfer across the fence

@baymaxium
baymaxium / content.md
Created October 18, 2017 09:18
论文大焖锅: NBER 老板如何影响公司业绩?

原文:论文大焖锅

怪蜀黍的维多利亚小秘密

coming soon...

本文是团队外编辑罗艺旸的第一篇推送

编辑自我介绍:大家好这里是新人小编罗艺旸,经济学博士刚毕业,现在欧洲某高校做研究。很希望借这个平台和读者进行共享探索,你和大牛的差距,只隔着一篇paper!

@maartenba
maartenba / PasskeySubmit.razor.js
Last active March 11, 2026 18:44
.NET 10 Blazor Passkey Support - Include support for 1Password
const browserSupportsPasskeys =
typeof navigator.credentials !== 'undefined' &&
typeof window.PublicKeyCredential !== 'undefined' &&
typeof window.PublicKeyCredential.parseCreationOptionsFromJSON === 'function' &&
typeof window.PublicKeyCredential.parseRequestOptionsFromJSON === 'function';
async function fetchWithErrorHandling(url, options = {}) {
const response = await fetch(url, {
credentials: 'include',
...options
@dfahlander
dfahlander / 1.include-dexie-export-import.js
Last active March 11, 2026 18:43
Export-IndexedDB-using-devtools-console
// On any web page that stores things in IndexedDB,
// open devtools and in the console, write the following:
script1 = document.createElement('script');
script1.src = 'https://unpkg.com/dexie@3.2.2';
document.body.appendChild(script1);
script2 = document.createElement('script');
script2.src = 'https://unpkg.com/dexie-export-import@1.0.3';
document.body.appendChild(script2);
@artandmath
artandmath / copypaste_with_input_tracking.py
Last active March 11, 2026 18:40
Copy/paste utilities for Nuke that preserve and restore node input connections.
"""
"SideFX Houdini-Style" copy/paste.
https://gist.github.com/artandmath/22d9bf83128c7a73cca3136506c4d559
Copy/paste tools for Nuke that preserve and restore node input connections.
How it works
------------
When copying with input restore, input connection metadata is written to a
temporary ``.nk`` file alongside the standard node data. The system clipboard
@101arrowz
101arrowz / README.md
Last active March 11, 2026 18:39
Download a McGraw Hill Education eTextbook

Download a McGraw Hill Education eTextbook

If you purchase a textbook from McGraw Hill, the website to view it is clunky and only works on some devices. You can't go to specific page numbers, the search is super slow, etc. That's why I wrote this script to download the textbook as an ePub file for your own viewing.

Using this script is 100% legal. McGraw Hill publicly hosts their ebooks online in order for their web client to download it. Moreover, to use it, you must already have purchased the book you would like to download, so it is legally yours to use as you please. However, it IS illegal to use this for piracy purposes. DO NOT DISTRIBUTE ANY TEXTBOOKS YOU DOWNLOAD USING THIS SCRIPT.

@executeautomation
executeautomation / openclaw.json
Created February 2, 2026 16:56
OpenClaw + Ollama + gpt-oss:20b configuration
{
"meta": {
"lastTouchedVersion": "2026.1.30",
"lastTouchedAt": "2026-02-01T16:48:36.938Z"
},
"wizard": {
"lastRunAt": "2026-02-01T16:48:36.935Z",
"lastRunVersion": "2026.1.30",
"lastRunCommand": "onboard",
"lastRunMode": "local"
@oidebrett
oidebrett / setting_up_crowdsec_pangolin_middleware_manager
Last active March 11, 2026 18:34
Detailed Steps for Setting Up Crowdsec with Pangolin and Middleware Manager
Detailed Steps
1) First obtain your enrolment key from Crowdsec. Enrollment refers to connecting your CrowdSec Security Engine to the CrowdSec Console
To Get CrowdSec Enrollment Key
- Visit https://www.crowdsec.net/
- Log in to your account
- Obtain the enrollment key from your dashboard
- Copy this key for later use